<?php
namespace app\user_api\controller;

use tp5_lib\api\controller\ApiBaseController;
use tp5_lib\user\logic\UserLogic;

class TestController extends ApiBaseController
{
    /**
     * 删除用户
     */
    public function remove()
    {
        $user=$this->checkLogin();
        $logic=new UserLogic();
        if($logic->discharge($user["id"])){
            $this->error($logic->getError());
        }
        $this->success();
    }
}
